package gbench.appdemo.trading.actor;


import org.junit.jupiter.api.Test;

import akka.actor.AbstractActor;

public class AgentActor {
    
    public static class Greeter  extends AbstractActor {

        @Override
        public Receive createReceive() {
            return receiveBuilder()
                    .match(Printer.class, greeting -> {
                        System.out.println(greeting);
                    })
                    .build();
        }
        
    }
    
    public static class Printer extends AbstractActor {

        @Override
        public Receive createReceive() {
            return receiveBuilder()
                    .match(Greeter.class, greeting -> {
                        System.out.println(greeting);
                    })
                    .build();
        }
        
    }
    
    @SuppressWarnings("unused")
    @Test
    public void main() {
        var g = new Greeter();
        var p = new Printer();
        
    }
   

}
